const express = require('express')
const messageCtrl = require('../controller/message')
const messageValidator = require('../validator/message')

// 使用 express 路由中间件
const router = express.Router()

// 注册获取短信验证
router.post('/message', messageValidator.message, messageCtrl.getMessage)

// 登录获取短信验证
router.post('/loginMessage', messageValidator.loginMessage, messageCtrl.getMessage)

module.exports = router